<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
        {{content}}
        <span :title="hello" @click="handleClick">hello</span>
        <p v-if="show">vuejs</p>
        <p v-else>hide vuejs</p>
        <p v-show="show">vuejs01</p>
        <ul>
            <li v-for="item in list">
                {{item}}
            </li>
        </ul>
        <input type="text" v-model="inputValue">
        <span>{{inputValue}}</span>
        <p v-html="hello"></p>
        <p v-text="hello"></p>
    </div>
    <script>
        let vm = new Vue({
            el: '#app',
            data: {
                content: 'hello',
                hello: '<h1>hello world</h1>',
                list: [1,2,3,4],
                show: true,
                inputValue: ''
            },
            methods: {
                handleClick: function () {
                    alert(1)
                }
            }
        })
    </script>
</body>
</html>
